angular.module('common.advertisement', [
    'ui.router',//路由
    'ngStorage',//路由
    'module.advertisement',
])
    .run(
        ['$rootScope', '$state', '$stateParams', '$localStorage', function ($rootScope, $state, $stateParams, $localStorage) {
            $rootScope.$state = $state;
            $rootScope.$stateParams = $stateParams;
            $localStorage[environmental+"shopid"] = 1514540307866;
    }])

    .config(
    ['$urlRouterProvider','$locationProvider','$httpProvider',
        function ($urlRouterProvider,$locationProvider,$httpProvider) {
            $urlRouterProvider.otherwise('/adlist');
            $locationProvider.html5Mode(html5mode);
            $httpProvider.defaults.withCredentials = true;
        }
    ]);